﻿<%@ Page Title="添加KPI" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="CreateKPI.aspx.cs"
	Inherits="KPI.CreateKPI" %>

<%@ Register Src="Controls/Messages.ascx" TagName="Messages" TagPrefix="uc3" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
	<script src="Scripts/jquery-ui-1.10.3.custom.min.js" type="text/javascript"></script>
	<script src="Scripts/jquery.ui.datepicker-zh-cn.js" type="text/javascript"></script>
	<script type="text/javascript">
		$(window).load(function () {

			buildRangeDatePicker("#txtKPIStartTime", "#txtKPIFinishTime");

		});
	</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
	<div class="pagetitle">
		<span>添加KPI </span>
	</div>
	<uc3:Messages ID="Messages1" runat="server" />
	<fieldset>
		<legend>KPI</legend>
		<div id="kpiform">
			<table cellpadding="8" cellspacing="0" border="0">
				<tr>
					<td>
						<label for="txtKPIContent">KPI内容(必填):</label>
					</td>
					<td colspan="3">
						<asp:TextBox ID="txtKPIContent" runat="server" ValidationGroup="kpi" MaxLength="768" TextMode="MultiLine" Columns="100" Rows="7"
							ClientIDMode="Static"></asp:TextBox>
					</td>
				</tr>
				<tr>
					<td>
						<label for="txtKPIContent">措施(必填):</label>
					</td>
					<td colspan="3">
						<asp:TextBox ID="txtActionPlan" runat="server" MaxLength="768" TextMode="MultiLine" Columns="100" Rows="6" ClientIDMode="Static"
							ValidationGroup="kpi"></asp:TextBox>
					</td>
				</tr>
				<tr>
					<td>
						<label for="txtKPIStartTime">开始日期(必填):</label>
					</td>
					<td>
						<asp:TextBox ID="txtKPIStartTime" runat="server" ValidationGroup="kpi" ClientIDMode="Static" Width="140"></asp:TextBox>
					</td>
					<td>
						<label for="txtKPIFinishTime">完成日期(必填):</label>
					</td>
					<td>
						<asp:TextBox ID="txtKPIFinishTime" runat="server" ValidationGroup="kpi" ClientIDMode="Static" Width="140"></asp:TextBox>
					</td>
				</tr>
				<tr>
					<td>
						<label for="txtKPIResponseDept">责任科室(必填):</label>
					</td>
					<td colspan="3">
						<asp:TextBox ID="txtKPIResponseDept" runat="server" ValidationGroup="kpi" MaxLength="128" ClientIDMode="Static" Width="320"></asp:TextBox>
						&nbsp;&nbsp;&nbsp;&nbsp;<label>(注：多个请用逗号隔开,下同)</label>
					</td>
				</tr>
				<tr>
					<td>
						<label for="txtKPIResponsablePerson">负责人(必填):</label>
					</td>
					<td>
						<asp:TextBox ID="txtKPIResponsablePerson" runat="server" ValidationGroup="kpi" MaxLength="128" ClientIDMode="Static" Width="320"></asp:TextBox>
					</td>
					<td>
						<label for="txtKPIRPTel">联系电话(必填):</label>
					</td>
					<td>
						<asp:TextBox ID="txtKPIRPTel" runat="server" MaxLength="64" ClientIDMode="Static" Width="320"></asp:TextBox>
					</td>
				</tr>
				<tr>
					<td>
						<label for="txtKPIResponsibleLeadership">分管领导(必填):</label>
					</td>
					<td>
						<asp:TextBox ID="txtKPIResponsibleLeadership" runat="server" ValidationGroup="kpi" MaxLength="128" ClientIDMode="Static"
							Width="320"></asp:TextBox>
					</td>
					<td>
						<label for="txtKPIRLTel">联系电话(必填):</label>
					</td>
					<td>
						<asp:TextBox ID="txtKPIRLTel" runat="server" ClientIDMode="Static" Width="320" MaxLength="64"></asp:TextBox>
					</td>
				</tr>
			</table>
		</div>
	</fieldset>
	<div class="buttonscontainer">
		<asp:Button ID="btnSave" runat="server" CssClass="button" Text="保 存" ValidationGroup="kpi" OnClick="btnSave_Click" ToolTip="点击保存KPI信息并返回" />
		<asp:Button ID="btnSaveAndContinue" runat="server" CssClass="button" Text="保存并继续添加" ValidationGroup="kpi" OnClick="btnSaveAndContinue_Click"
			ToolTip="点击保存KPI信息并继续添加" />
		<asp:Button ID="btnCancel" runat="server" CssClass="button" Text="取 消" OnClick="btnCancel_Click" />
		<asp:RequiredFieldValidator ID="rfvKPIContent" CssClass="failurenotification" Display="Dynamic" runat="server" ControlToValidate="txtKPIContent"
			ErrorMessage="KPI内容必填." ClientIDMode="Static" ValidationGroup="kpi" ToolTip="KPI内容必填.">KPI内容必填</asp:RequiredFieldValidator>
		<asp:RequiredFieldValidator ID="rfvActionPlan" CssClass="failurenotification" Display="Dynamic" runat="server" ControlToValidate="txtActionPlan"
			ErrorMessage="措施必填." ClientIDMode="Static" ValidationGroup="kpi" ToolTip="措施必填.">措施必填</asp:RequiredFieldValidator>
		<asp:RequiredFieldValidator ID="rfvKPIStartTime" CssClass="failurenotification" runat="server" Display="Dynamic" ControlToValidate="txtKPIStartTime"
			ErrorMessage="开始日期必填." ClientIDMode="Static" ValidationGroup="kpi" ToolTip="开始日期必填.">开始日期必填</asp:RequiredFieldValidator>
		<asp:RequiredFieldValidator ID="rfvKPIFinishTime" CssClass="failurenotification" runat="server" Display="Dynamic" ControlToValidate="txtKPIFinishTime"
			ErrorMessage="完成日期必填." ClientIDMode="Static" ValidationGroup="kpi" ToolTip="完成日期必填.">完成日期必填</asp:RequiredFieldValidator>
		<asp:RequiredFieldValidator ID="rfvKPIResponseDept" CssClass="failurenotification" runat="server" Display="Dynamic" ControlToValidate="txtKPIResponseDept"
			ErrorMessage="责任科室必填." ClientIDMode="Static" ValidationGroup="kpi" ToolTip="责任科室必填.">责任科室必填</asp:RequiredFieldValidator>
		<asp:RequiredFieldValidator ID="rfvKPIResponsablePerson" CssClass="failurenotification" Display="Dynamic" runat="server"
			ControlToValidate="txtKPIResponsablePerson" ErrorMessage="负责人必填." ClientIDMode="Static" ValidationGroup="kpi" ToolTip="负责人必填.">负责人必填</asp:RequiredFieldValidator>
		<asp:RequiredFieldValidator ID="RequiredFieldValidator1" CssClass="failurenotification" runat="server" Display="Dynamic"
			ControlToValidate="txtKPIRPTel" ErrorMessage="联系电话必填." ClientIDMode="Static" ValidationGroup="kpi" ToolTip="联系电话必填.">联系电话必填</asp:RequiredFieldValidator>
		<asp:RequiredFieldValidator ID="rfvKPIResponsibleLeadership" CssClass="failurenotification" runat="server" Display="Dynamic"
			ControlToValidate="txtKPIResponsibleLeadership" ErrorMessage="分管领导必填." ClientIDMode="Static" ValidationGroup="kpi" ToolTip="分管领导必填.">分管领导必填</asp:RequiredFieldValidator>
		<asp:RequiredFieldValidator ID="RequiredFieldValidator2" CssClass="failurenotification" runat="server" Display="Dynamic"
			ControlToValidate="txtKPIRLTel" ErrorMessage="联系电话必填." ClientIDMode="Static" ValidationGroup="kpi" ToolTip="联系电话必填.">联系电话必填</asp:RequiredFieldValidator>
		<asp:CustomValidator ID="cusvKPIContent" runat="server" CssClass="failurenotification" Display="Dynamic" ClientValidationFunction="checkKPIContentMaxLength"
			OnServerValidate="cusvKPIContent_ServerValidate" ValidationGroup="kpi" ControlToValidate="txtKPIContent" ErrorMessage="KPI内容字数限制在500字以内"
			ToolTip="KPI内容字数限制在500字以内">KPI内容字数限制在500字以内</asp:CustomValidator>
		<asp:CustomValidator ID="cusvActionPlan" runat="server" CssClass="failurenotification" Display="Dynamic" ClientValidationFunction="checkActionPlanMaxLength"
			OnServerValidate="cusvActionPlan_ServerValidate" ValidationGroup="kpi" ControlToValidate="txtActionPlan" ErrorMessage="措施字数限制在500字以内"
			ToolTip="措施字数限制在500字以内">措施字数限制在500字以内</asp:CustomValidator>
	</div>
</asp:Content>
